<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>获取事件对象</title>
	</head>
	<body>
		
		<!-- <div id="t">one</div> -->
		<button id="btn">获取event对象</button>
		<script>
			var btn=document.getElementById("btn");
			// console.log(btn);
			btn.onclick=function(e){
				console.log(event);
			}
			
			
			
			// var div=document.getElementById('t');
			// // console.log(div);
			// //监听
			// div.addEventListener("click",function(){ //只获取点击的类
			// 	div.innerHTML="two";//点1变2 更改HTML..
			// })
		</script>
	</body>
</html>
